package com.leyou.service;

import com.baomidou.mybatisplus.extension.service.IService;
import com.leyou.common.page.PageResult;
import com.leyou.entity.SpuEntity;
import com.leyou.vo.BrandAndProduct;
import com.leyou.vo.GoodsVo;
import com.leyou.vo.SpuPageParamVo;
import com.leyou.vo.SpuVo;

import java.util.List;

/**
 * spu表，该表描述的是一个抽象性的商品，比如 iphone8
 *
 * @author Daifeng
 * @email 2661184062@qq.com
 * @date 2020-12-25 16:44:46
 */
public interface SpuService extends IService<SpuEntity> {

    PageResult<SpuVo> getSpuPages(SpuPageParamVo paramVo);

    List<BrandAndProduct> getBrandAndProduct();

    void addgoods(GoodsVo goodsVo);

    void SaveGoods(GoodsVo goodsVo);

    void SaveSaleable(Long saleable, Long id);

    void deleteProduct(Long id);
}

